function getByPage(pagerselector, param, actionUrl, callback) {
	var page_size = param.pageSize;
	$.ajax({
		url : actionUrl,
		data : param,
		type: 'POST',
		success : function(data) {
			if(data.page != null || data.page != undefined){
				var opt = {
					items_per_page : page_size,
					num_display_entries : 5,
					num_edge_entries : 1,
					prev_text : "上一页",
					next_text : "下一页",
					callback : function(page_index, jq) {
						param.pageNumber = page_index + 1;
						getByPage(pagerselector, param, actionUrl, callback);
						return false;
					},
					current_page : param.pageNumber-1,
					load_first_page : false
				};
				$(pagerselector).pagination(data.page.totalRow, opt);
				callback(data);
			}else{
				if(data.ret.retCode == 2003){
					window.location.href="../login.html"
				}
			}
		}
	})
}